package com.hong.record.common.entity;

import com.hong.record.common.annotation.LogCompar;
import com.hong.record.common.myEnum.EnumTableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author hongji
 * @date 2019-12-05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Person extends Base {
    @LogCompar(name = "id")
    private Long id;
    @LogCompar(name = "姓名")
    private String name;
    @LogCompar(name = "年龄")
    private Integer age;
    @LogCompar(name = "性别")
    private boolean sex;
    @LogCompar(name = "生日",dateFormat = "yyyy-MM-dd HH:mm:ss.SSSSSS")
    private Date bir;

    @Override
    EnumTableName getTableName() {
        return EnumTableName.Person;
    }

}
